#include <iostream>
using namespace std;
int exam3_1()
{
	int c;
	float w;
	cout << "w=";
	cin >> w;
	if (w <= 500)  c = 6;
	else c = 9;
	cout << "c=" << c << endl;
	return 0;
}